package com.xwltz.database.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @description BaseSimpleEntity
 * @information on version 1.0 be created by @xwltz at 2022/6/15 16:19
 */

@Data
@Accessors(chain = true)
@ApiModel("简单基础业务模型")
public class BaseSimpleEntity implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "创建者")
	@TableField(fill = FieldFill.INSERT)
	private String createBy;

	@ApiModelProperty(value = "创建时间")
	@TableField(fill = FieldFill.INSERT)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;

	@ApiModelProperty(value = "状态")
	private Integer status;
}
